package cc.jq1024.middleware.encrypt.exception;

/**
 * @author li--jiaqiang
 */
public class EDException extends Exception {

    private final int errorCode;

    public EDException(int errorCode) {
        super("CryptException");
        this.errorCode = errorCode;
    }

    public EDException(int errorCode , Throwable cause) {
        super(cause);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
